import {createApp} from 'vue'
import '@/common/style/index.css'
import App from './App.vue'
import router from '@/common/router'
// 路由守卫
import '@/common/router/guard'

import 'element-plus/dist/index.css'
import store from "@/common/store/store";
// el 图标
import * as elIconsVue from '@element-plus/icons-vue'

const app = createApp(App)


for (const [key, component] of Object.entries(elIconsVue)) {
    app.component(key, component)
}
app.use(store);

//
app.use(router)

//忽略警告信息
app.config.warnHandler = (msg, instance, trace) => {
}

//
app.mount('#app')
